package cn.jiyun.controller;

import cn.jiyun.dao.login.TeamDTO;
import cn.jiyun.feign.LoginFeign;
import cn.jiyun.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author 王晨
 * Date 2023/9/4
 */
@RestController
@RequestMapping("/team")
public class TeamLoginController {
    @Autowired
    private LoginFeign teamLoginFeign;

    @RequestMapping("/findTeamLogin")//查询当前登录人的战队
    public R findAll(TeamDTO teamDTO){
        return teamLoginFeign.findAll(teamDTO);
    }
}
